package com.qf.day07.poly01;

import java.util.Random;

public class Weaponry {
    private String name;
    private int durability;//耐久度
    private int attack;//攻击力
    private int range;//攻击范围

    public Weaponry(String name, int durability, int attack, int range) {
        this.name = name;
        this.durability = durability;
        this.attack = attack;
        this.range = range;
    }

    public Weaponry() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getDurability() {
        return durability;
    }

    public void setDurability(int durability) {
        this.durability = durability;
    }

    public int getAttack() {
        return attack;
    }

    public void setAttack(int attack) {
        this.attack = attack;
    }

    public int getRange() {
        return range;
    }

    public void setRange(int range) {
        this.range = range;
    }

    @Override
    public String toString() {
        return "Weaponry{" +
                "name='" + name + '\'' +
                ", durability=" + durability +
                ", attack=" + attack +
                ", range=" + range +
                '}';
    }
}
